package com.alon.spring01.mapper;


import com.alon.spring01.model.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface UserMapper extends Mapper<User> {

    int insert(@Param("user") User user);

    int insertSelective(@Param("user") User user);

    int insertList(@Param("users") List<User> users);

    int updateByPrimaryKeySelective(@Param("user") User user);

    List<User> findById(@Param("id") Integer id);

    List<User> findByParams(@Param("params") int[] params);


}
